package com.wizz.trade.information.mapper;

import com.wizz.trade.information.entity.Trademark;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 商标表 Mapper 接口
 * </p>
 *
 * @author fyftless
 * @since 2023-04-02 04:26:06
 */
@Mapper
public interface TrademarkMapper extends BaseMapper<Trademark> {

    /**
     * 获取商标名map
     * @param varietyId
     * @return
     */
    List<Map<Integer, String>> getNames(@Param("varietyId") Integer varietyId);

    /**
     * 获取键值对
     * @param varietyId 品种id
     * @return 键值对
     */
    List<Map<Integer, String>> getOptions(@Param("varietyId") Integer varietyId);

}
